﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tools
{
  public   class ShowMessageBox
    {

        public static void ShowErrorBox(string content)
        {
            MessageBox.Show(content, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        public static DialogResult ShowAskBox(string content)
        {
            return MessageBox.Show(content, "询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
        public static void ShowInfoBox(string content)
        {
            MessageBox.Show(content, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        public static void ShowSuccess(string content)
        {
            MessageBox.Show(content, "成功", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
    }
}
